<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="pmzh.css">

    <style>
        .box {
            display: flex;
            margin: 0 auto;
            width: 464px;
            height: 272px;
            background-image: url(../demo/images/banner1.jpg);
            overflow: hidden;
        }
        .box .left ,
        .box .right {
            width: 50%;
            height: 272px;
            transition: all 1s;
        }
        .box .left{
            background-image: url(../demo/images/banner2.jpg);
        }
        .box .right {
            background-image: url(../demo/images/banner2.jpg);
            background-position: right ;
        }


        .box:hover .left{
            transform: translate(-100%);
        }

        .box:hover .right{
            transform: translate(100%);
        }

    </style>
</head>



<body>
    

    <div class="box">
        <div class="left"></div>
        <div class="right"></div>
    </div>



    <div class="box2">
        <img src="../demo/images/banner3.jpg" alt="">
    </div>

    <div class="box3">
        <!-- <img src="../demo/images/banner1.jpg" alt=""> -->
    </div>

    <!-- 经向渐变 -->
    <div class=" boxcommon box4">

    </div>


</body>
</html>